﻿namespace MicroCloud
{
    /// <summary>
    /// Jwt信息常量
    /// </summary>
    public class JwtConstants
    {
        /// <summary>
        /// 默认发行方
        /// </summary>
        public const string DefaultIssuer = @"MicroCloud identity";

        /// <summary>
        /// 默认订阅方
        /// </summary>
        public const string DefaultAudience = @"MicroCloud clients";

        /// <summary>
        /// 默认AccessToken有效期分钟数（5分钟）
        /// </summary>
        public const decimal DefaultAccessExpireMins = 5;

        /// <summary>
        /// 默认RefreshToken有效期分钟数（7天）
        /// </summary>
        public const decimal DefaultRefreshExpireMins = 10080;

        /// <summary>
        /// 提供者
        /// </summary>
        public const string Provider = @"JwtBearer";

        /// <summary>
        /// 刷新令牌名称前缀
        /// </summary>
        public const string RefreshTokenNamePrefix = @"RefreshToken";

    }
}
